package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 产品类型对象 product_type
 * 
 * @author ruoyi
 * @date 2025-01-17
 */
public class ProductType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自增整数 */
    private Long id;

    /** 产品类型代码，不能为空 */
    @Excel(name = "产品类型代码，不能为空")
    private String code;

    /** 产品类型名称，不能为空 */
    @Excel(name = "产品类型名称，不能为空")
    private String name;

    /** 父级产品类型ID */
    @Excel(name = "父级产品类型ID")
    private Long pid;

    /** 备注 */
    @Excel(name = "备注")
    private String info;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("pid", getPid())
            .append("createTime", getCreateTime())
            .append("info", getInfo())
            .toString();
    }
}
